package main

import "fmt"

// 指针 *int  取值的地址 &variables
func main() {
	i := 1
	fmt.Println("initial value is ,", i)
	zeroVal(1)
	fmt.Println("zero value is ,", i)
	zeroValPointer(&i)
	fmt.Println("zeropointer is ,", i)
	fmt.Println("13-pointer is", &i)
}

func zeroVal(val int) {
	val = 0
}

func zeroValPointer(val *int) {
	*val = 0
}
